package com.lcj.mis.service.impl;

import com.lcj.common.util.Result;
import com.lcj.mis.controller.form.DriverFineForm;
import com.lcj.mis.controller.form.SearchFineForm;
import com.lcj.mis.feign.DrServiceApi;
import com.lcj.mis.service.DriverFineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class DriverFineServiceImpl implements DriverFineService {

    @Resource
    private DrServiceApi drServiceApi;

    @Override
    public Result addOrUpdate(DriverFineForm form) {
        Result res= drServiceApi.addOrUpdate(form);
        return res;
    }

    @Override
    public Result delete(DriverFineForm form) {
        Result res= drServiceApi.delete(form);
        return res;
    }

    @Override
    public Result select(SearchFineForm form) {
        Result res = drServiceApi.selectDriverFine(form);
        return res;
    }

}
